package com.administrator.kotlindemo1

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.PersistableBundle
import android.view.View
import com.administrator.kotlindemo1.R.id.*
import kotlinx.android.synthetic.main.activity_main.*


class MainActivity : AppCompatActivity(), View.OnClickListener {

    override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
        super.onCreate(savedInstanceState, persistentState)
        setContentView(R.layout.activity_main)
    }

//    override fun layoutId(): Int = R.layout.activity_main
//
//
//
//    override fun initData() {
//        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
//    }
//
//    override fun initView() {
//        btn_load.setOnClickListener(this)
//        btn_error.setOnClickListener(this)
//        btn_no_network.setOnClickListener(this)
//    }

    override fun onClick(v: View?) {
        when {
//            v?.id == R.id.btn_load -> {
//                multipleStatusView?.showLoading()
//            }
//            v?.id == R.id.btn_error -> {
//                multipleStatusView?.showError()
//            }
//            v?.id == R.id.btn_no_network -> {
//                multipleStatusView?.showNoNetwork()
//            }
        }
    }

//    override fun start() {
//        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
//    }


}
